package com.xc.freeapp.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.wordnik.swagger.annotations.ApiModelProperty;

/**
 * 
 * @author wukailuo 消息表
 */
public class Messages implements Serializable {

	private static final long serialVersionUID = 1L;
	private Integer id;
	@ApiModelProperty(value="消息id")
	private Integer mid;
	@ApiModelProperty(value="appid")
	private Integer businessId;
	@ApiModelProperty(value="消息标题")
	private String title;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@ApiModelProperty(value="消息时间")
	private Date mtimes;
	@ApiModelProperty(value="消息内容")
	private String content;
	@ApiModelProperty(value="消息图标")
	private String msgicon;
	@ApiModelProperty(value="消息类别（1：系统消息，2：医院消息,3:医院公告）")
	private Integer msgtype;
	private Integer createby;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date createtime;
	private Integer updateby;
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private Date updatetime;
	private char delflag;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Messages() {
		super();
	}

	public Messages(Integer mid, Integer businessId, String title, Date mtimes,
			String content, String msgicon, Integer msgtype, Integer createby,
			Date createtime, Integer updateby, Date updatetime, char delflag) {
		super();
		this.mid = mid;
		this.businessId = businessId;
		this.title = title;
		this.mtimes = mtimes;
		this.content = content;
		this.msgicon = msgicon;
		this.msgtype = msgtype;
		this.createby = createby;
		this.createtime = createtime;
		this.updateby = updateby;
		this.updatetime = updatetime;
		this.delflag = delflag;
	}

	public Integer getMid() {
		return mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public Integer getBusinessId() {
		return businessId;
	}

	public void setBusinessId(Integer businessId) {
		this.businessId = businessId;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Date getMtimes() {
		return mtimes;
	}

	public void setMtimes(Date mtimes) {
		this.mtimes = mtimes;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getMsgicon() {
		return msgicon;
	}

	public void setMsgicon(String msgicon) {
		this.msgicon = msgicon;
	}

	public Integer getMsgtype() {
		return msgtype;
	}

	public void setMsgtype(Integer msgtype) {
		this.msgtype = msgtype;
	}

	public Integer getCreateby() {
		return createby;
	}

	public void setCreateby(Integer createby) {
		this.createby = createby;
	}

	public Date getCreatetime() {
		return createtime;
	}

	public void setCreatetime(Date createtime) {
		this.createtime = createtime;
	}

	public Integer getUpdateby() {
		return updateby;
	}

	public void setUpdateby(Integer updateby) {
		this.updateby = updateby;
	}

	public Date getUpdatetime() {
		return updatetime;
	}

	public void setUpdatetime(Date updatetime) {
		this.updatetime = updatetime;
	}

	public char getDelflag() {
		return delflag;
	}

	public void setDelflag(char delflag) {
		this.delflag = delflag;
	}

}
